package org.tzw.template.domain;

/**
 * 公共请求响应实体类
 * 作者：Administrator on 2020/11/26 15:49
 */
public class ResultData<T> {
    private Integer code;
    private String msg;
    private T data;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public boolean isSuccess() {
        if(getCode() == 0||getCode() == 200){
            return true;
        }
        return false;
    }
}
